package com.lz.seata.service;

import com.lz.seata.domain.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: IProductService
 * @Date: 2020/5/4 12:01
 * @Author: LiZhen
 * @Version: 1.0
 */
@FeignClient("product-service")
public interface IProductService {
    @GetMapping("products/{id}")
    ResultVO findByPid(@PathVariable("id") Integer id);

    @GetMapping("products/deductStock/{id}/{number}")
    ResultVO deductStock(@PathVariable("id") Integer id, @PathVariable("number") Integer number);

    @GetMapping("products/testloadbalance")
    ResultVO testLoadBalance();
}
